Skip to content

Newsletter preview: wrap long lines on all tabs; shareable preview shows only the issue - #443

Merged
alexeygrigorev merged 2 commits into
mainfrom
hub/intake-977d0a40af8394f4a612053dd6fb47b5c124b6ba1d778346f72497b0e88e5881
Nov 13, 2026
Merged

alexeygrigorev merged 2 commits into
mainfrom
hub/intake-977d0a40af8394f4a612053dd6fb47b5c124b6ba1d778346f72497b0e88e5881

Conversation

@alexeygrigorev

Copy link
Copy Markdown
Member

Intake 646dfb96 (t2320u).

  • Wrapping: long URLs and inline code on the issue/brief/sources/raw tabs stayed on one line and pushed the card past the right edge. Grid tracks on the shell, cards, canvas and envelope are now minmax(0,1fr) with min-width:0. Prose, links and inline code use overflow-wrap:anywhere, and pre blocks scroll horizontally inside the card.
  • Shareable preview: the code-gated (external) view shows only the reader-facing issue. The tab bar is staff-only, and the external API payload now returns empty brief/sources (both markdown and rendered HTML). Brief, Sources and Raw stay on the authenticated page.
  • Regression test: backend/e2e/newsletter-preview-overflow.spec.js uses a long URL and long inline code and asserts no horizontal page or card overflow on every staff tab and on the shareable link at 1280 and 390 widths. It also checks that the shareable view has no tabs and no sources text. On the old code it fails (page scrollWidth 1857 > 1280).
  • The unit test now also asserts that the external payload carries no brief/sources.

Only layout and tab visibility change here. No issue or sources content is edited.

…ows only the issue

Long URLs and inline code no longer stretch the preview card past the
viewport: grid tracks are pinned to minmax(0,1fr), prose/code/links use
overflow-wrap:anywhere, and pre blocks scroll inside the card.

The code-gated shareable preview is reader-facing only: the tab bar is
staff-only and the external API payload no longer carries brief.md or
sources.md (markdown or rendered HTML).

Adds a Playwright regression (long URL + long inline code) asserting no
horizontal overflow on each staff tab and on the shareable preview at
1280 and 390 widths. Intake 646dfb96 (t2320u).
@alexeygrigorev
alexeygrigorev merged commit 18aa3ae into main Nov 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant